import axios from '@/libs/api.request.js'

//添加购物车信息
export const addOrderShoppingCart = data =>{
  return axios.request({
    url: "/api/shoppingCart/addOrderShoppingCart",
    method: "post",
    data:data
  })
};

//查询购物车信息
export const selectOrderShoppingCart = data =>{
  return axios.request({
    url: "/api/shoppingCart/selectOrderShoppingCart",
    method: "post",
  })
};

//从购物车添加订单
export const addOrder = data =>{
  return axios.request({
    url: "/api/shoppingCart/addOrder",
    method: "post",
    data:data
  })
};

//从购物车添加订单
export const shoppingPayment = data =>{
  return axios.request({
    url: "/api/shoppingCart/shoppingPayment",
    method: "post",
    data:data
  })
};

//从购物车添加订单
export const shoppingPaymentWx = data =>{
  return axios.request({
    url: "/api/shoppingCart/shoppingPaymentWx",
    method: "post",
    data:data
  })
};

